﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SummaryOrder.aspx.cs" Inherits="SaleOnlineSystem.SummaryOrder" %>

<%@ Register TagPrefix="ucc" TagName="head" Src="~/controls/Head.ascx" %>
<%@ Reference Control="~/controls/Head.ascx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<!--------------HEAD--------------->
<ucc:head runat="server" ID="head" />

<body style="background: rgba(0,0,0,0.6);">
    <form id="Form1" runat="server">       
        <div id="invoice-wrapper">

            <div class="invoice">
                <div class="invoice-top">
                    <h2>Hóa đơn thanh toán</h2>
                    <br /><br />
                    <p class="left" style="width: 120px;">
                        <strong>A-mark.vn</strong>
                    </p>
                    <p class="right">
                        <strong>Ngày xuất</strong>:
                    <asp:Label ID="lblDate" runat="server"></asp:Label>
                    </p>
                    <p class="clearfix"></p>
                    <p>
                        <strong>Người mua hàng</strong>:
                    <asp:Label ID="lblUser" runat="server"></asp:Label>
                    </p>
                    <p>
                        <strong>Email</strong>:
                    <asp:Label ID="lblEmail" runat="server"></asp:Label>
                    </p>
                    <p>
                        <strong>Số điện thoại</strong>:
                    <asp:Label ID="lblPhone" runat="server"></asp:Label>
                    </p>
                    <p>
                        <strong>Địa chỉ</strong>:
                    <asp:Label ID="lblAddress" runat="server"></asp:Label>
                    </p>
                    <p><strong>Tình trạng thanh toán</strong>: Chưa thanh toán</p>
                </div>
                <div class="clearfix"></div>
                <div class="invoice-content">
                    <table class="mGrid">
                        <tr>
                            <th>Sản phẩm</th>
                            <th>Màu</th>
                            <th>Size</th>
                            <th>Số lượng</th>
                            <th>Giá / Sản phẩm</th>
                            <th>Tổng giá </th>
                        </tr>
                        <%for (int i = 0; i < BOL.Shopping.ShoppingCart.Instance.mycart.Count; i++)
                             
                          {%>
                         
                        <tr>
                            <td><%=BOL.Shopping.ShoppingCart.Instance.getName(BOL.Shopping.ShoppingCart.Instance.mycart[i].id) %></td>
                            <%--<td><asp:Label ID="Label2" runat="server"  BackColor='<%= new System.Drawing.ColorConverter().ConvertFromString(BOL.Shopping.ShoppingCart.Instance.getColorName(BOL.Shopping.ShoppingCart.Instance.mycart[i].id)) %>' Width="13px" Height="13px"></asp:Label></td>--%>
                            <td><%=BOL.Shopping.ShoppingCart.Instance.getColorName(BOL.Shopping.ShoppingCart.Instance.mycart[i].id) %></td>
                            <td><%=BOL.Shopping.ShoppingCart.Instance.getSizeName(BOL.Shopping.ShoppingCart.Instance.mycart[i].id) %></td>
                            <td><%=BOL.Shopping.ShoppingCart.Instance.mycart[i].soluong %></td>
                            <td><%=BOL.Shopping.ShoppingCart.Instance.getPrice(BOL.Shopping.ShoppingCart.Instance.mycart[i].id) %></td>
                            <td><%=BOL.Shopping.ShoppingCart.Instance.getTotal(BOL.Shopping.ShoppingCart.Instance.mycart[i].id) %></td>
                        </tr>
                        <%} %>
                        <tr>
                            <th></th>
                            <th></th>
                            <th>Tổng hóa đơn:</th>
                            <th><%=BOL.Shopping.ShoppingCart.Instance.getSum() %><span class="unit">đ</span></th>
                        </tr>
                    </table>
                </div>
                <div class="invoice-footer">
                    <asp:Button ID="btnMuahang" CssClass="btnSubmit" runat="server" Text="Mua hàng" OnClick="btnMuahang_Click" />
                    <p><a href="http://a-mark.vn/">A-Mark.Vn</a></p>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
